package file;
import java.io.*;

public class Copia {

	public static void main(String[] args) throws IOException {
		InputStream source = new FileInputStream("f1.dat");
		OutputStream dest = new FileOutputStream("f.dat");
		int dato;
		
		for(;;){
			dato=source.read();
			if(dato==-1)
				break;
			dest.write(dato);
		}
		source.close();
		dest.close();
	}

}
